package com.example.yang.synchronizeddemo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

/**
 * Created by yang_ on 2018/3/28.
 */

public class MainActivity extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        TextView view = findViewById(R.id.test);
        view.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, TestActivity.class);
                startActivity(intent);
            }
        });
        LiftOff thread1 = new LiftOff();
        LiftOff thread2 = new LiftOff();
        LiftOff thread3 = new LiftOff();
        Log.e("young", "thread1:" + thread1.status());
        Log.e("young", "thread2:" + thread2.status());
        Log.e("young", "thread3:" + thread3.status());
    }
}
